from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
_magic_number = 1
_modified_time = 1181849105.495981
_template_filename='/Users/keningle/Documents/workspace/PylonsProjects/hitlist/hitlist/templates/todo.html'
_template_uri='/todo.html'
_template_cache=cache.Cache(__name__, _modified_time)
_exports = []


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]
def _mako_generate_namespaces(context):
    pass
def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, 'base.html', _template_uri)
def render_body(context,**pageargs):
    __locals = dict(pageargs=pageargs)
    h = context.get('h', UNDEFINED)
    c = context.get('c', UNDEFINED)
    # SOURCE LINE 2
    context.write(u'\n\n<ul id="undonetodos">\n')
    # SOURCE LINE 6
    for task in c.tasks:
        # SOURCE LINE 7
        context.write(u'\t\t<li id="task_')
        context.write(filters.decode.utf8(task.id))
        context.write(u'">')
        context.write(filters.decode.utf8(task.task))
        context.write(u'\n\t\t\n')
        # SOURCE LINE 10
        context.write(u'\t\t-- <b>Tags</b>\n')
        # SOURCE LINE 11
        for tag in task.tags:
            # SOURCE LINE 12
            context.write(u'\t\t\t')
            context.write(filters.decode.utf8(tag.name))
            context.write(u', \n')
        # SOURCE LINE 14
        context.write(u'\t\t\n\t\t</li>\t\n\t\t')
        # SOURCE LINE 16
        h.draggable_element("task_"+str(task.id), revert=True) 
        
        context.write(u'\t\n')
    # SOURCE LINE 18
    context.write(u'</ul>\n<p>\n\tAdd a Task:<br />\n')
    # SOURCE LINE 22
    context.write(u'\t<form action="/add" method="POST">\n\t\tTask: <input type="text" name="newtask" value="" id="newtask">\n\t\t<br />Tags: <input type="text" name="newtags" value="" id="newtags">\n\t\t<input type="submit" name="submit" value="Add Tag" id="submit">\n\t</form>\n\t\n\n</div>\n\n\n\n')
    return ''


